package com.example.user_module.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

import io.reactivex.Maybe;

@Dao
public interface UserDao {
    @Insert
    void insertUser(UserEntity userEntity);

    @Query("select * from UserEntity")
    Maybe<List<UserEntity>> queryUser();

    @Query("delete from UserEntity")
    void delUser();
}
